import 'package:flutter/material.dart';
import 'package:flutter/src/widgets/framework.dart';
import 'package:flutter_app/BaseMaterialWidget.dart';
import 'package:flutter_app/weixin_demo/LoadingPage.dart';

import 'WeixinHomePage.dart';

///默认主题
final ThemeData mDefaultTheme = ThemeData(
    primaryColor: Colors.green,
    scaffoldBackgroundColor: Color(0xffebebeb),
    cardColor: Colors.green);

class WeixinMain extends BaseMaterialWidget {
  @override
  Widget buildContent(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: '聊天室',
      theme: mDefaultTheme,
      routes: <String, WidgetBuilder>{"home": (context) => WeixinHomePage()},
      home: LoadingPage(),
    );
  }
}
